package com.example.express.dao;

import com.example.express.bean.User;

import java.util.List;
import java.util.Map;

public interface BaseUserDao {
    List<Map<String,Integer>> console();

    List<User> findAll(boolean limit,int offset,int pageNum);

    User findByPhoneNum(String phoneNumber);

    boolean insert(User user);

    boolean update(int id,User user);

    boolean delete(int id);
}
